STEP 3: Let's now display the user's score on the stage!

  • In , drag Variable Display inside main() and underneath ····score·=·0.
  • Make sure it's indented four spaces.
  • Inside the parentheses, change my_var to score.
  • Then, place the variable display at (0, 175).

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)